home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
015a
/
stuf12.zip
/
DEMO1.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-09-09
|
3KB
|
153 lines
rem DOS Shell Demonstration
echo off
:begin
kls 3
batbox shell.mnu
if errorlevel 82 goto errorb
if errorlevel 81 goto exit
if errorlevel 80 goto programs
if errorlevel 69 goto errorb
if errorlevel 68 goto dossvc
:errorb
sounder
goto begin
:programs
kls 5
batbox programs.mnu
if errorlevel 82 goto errorp
if errorlevel 81 goto begin
if errorlevel 78 goto errorp
if errorlevel 77 goto music
if errorlevel 66 goto errorp
if errorlevel 65 goto apps
:errorp
sounder
goto programs
:music
kls 7
batbox music.mnu
if errorlevel 85 goto errorm
if errorlevel 84 goto tone
if errorlevel 83 goto errorm
if errorlevel 82 goto random
if errorlevel 81 goto programs
if errorlevel 68 goto errorm
if errorlevel 67 goto choose
:errorm
sounder
goto music
:tone
sounder
goto music
:random
kls 3
rand 4
if errorlevel 4 goto strangers
if errorlevel 3 goto vmi
if errorlevel 2 goto mcdonald
music11 dixie2
goto music
:strangers
music11 strngers
goto music
:vmi
music11 vmi
goto music
:mcdonald
music11 mcdonald
goto music
:choose
kls 6
music111 *.cm1
goto music
:apps
kls 5
batbox apps.mnu
if errorlevel 88 goto errora
if errorlevel 87 goto ws
if errorlevel 82 goto errora
if errorlevel 81 goto programs
if errorlevel 80 goto paradox
if errorlevel 77 goto errora
if errorlevel 76 goto lotus
:errora
sounder
goto apps
:ws
kls 7
write "Now Loading WordStar" 10 142
waitfor 3
goto apps
:paradox
kls 7
write "Now Loading Paradox" 10 142
waitfor 3
goto apps
:lotus
kls 7
write "Now Loading Lotus 1-2-3" 10 142
waitfor 3
goto apps
:dossvc
kls 6
batbox service.mnu
if errorlevel 87 goto errord
if errorlevel 86 goto view
if errorlevel 82 goto errord
if errorlevel 81 goto begin
if errorlevel 71 goto errord
if errorlevel 70 goto freed
if errorlevel 69 goto errord
if errorlevel 68 goto ddir
:errord
sounder
goto dossvc
:ddir
kls
dir *.*
pause
goto dossvc
:view
kls
type batstuff.doc|more
goto dossvc
:freed
kls 2
skip 6
input "Which disk drive, A, B, or C?" 10 /c
if errorlevel 100 goto errorf
if errorlevel 99 goto c
if errorlevel 98 goto b
if errorlevel 97 goto a
if errorlevel 82 goto errorf
if errorlevel 81 goto dossvc
if errorlevel 68 goto errorf
if errorlevel 67 goto c
if errorlevel 66 goto b
if errorlevel 65 goto a
:errorf
sounder
goto freed
:c
skip 1
freedisk c
waitfor 3
goto begin
:b
skip 1
freedisk b
waitfor 3
goto begin
:a
skip 1
freedisk a
waitfor 3
goto begin
:exit
input "Do you realy want to quit? (Y/N)" 79 /c
if errorlevel 121 goto done
if errorlevel 110 goto begin
if errorlevel 89 goto done
goto begin
:done
kls